package com.wangce.dao;

import com.wangce.entity.User;
import org.apache.ibatis.annotations.Select;

/**
 * ClassName: UserDao
 * Description:
 * date: 2021/11/14 16:58
 *
 * @author 凡人
 * @since JDK 1.8
 */
public interface UserDao {

    /**
     * 登陆方法
     * @param u
     * @return
     */
    @Select("select * from tb_user where user_name = #{userName} && user_pwd = #{userPwd}")
    User login(User u);
}
